<?php
/**
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file license.txt or that can be found at 
 * http://code.google.com/p/billboardce/wiki/License.
 *
 * @package    Ot_Filter_Ucwords
 * @category   filter
 * @license    http://code.google.com/p/billboardce/wiki/License New BSD License
 * @version    SVN: $Id: $
 */

/**
 * Capitalizes words.
 *
 * @package    Ot_Filter_Ucwords
 * @category   Filter
 */
class Ot_Filter_Ucwords implements Zend_Filter_Interface
{
    /**
     * Class constructor
     *
     *
     * @return void
     */
    public function __construct()
    {
    }

    /**
     * Defined by Zend_Filter_Interface
     *
     * Returns the string $value, with each word uppercased
     *
     * @param  string $value
     * @return string
     */
    public function filter($value)
    {
		return ucwords($value);
    }
}